package day07;
public class OverloadDemo {
    public static void main(String[] args) {
        show();
        show("小何");
        show(3);
        show(3);
        show(3);
        show("小何",3);
        show(3,"小何");
        //show(3.5);//编译错误，没有boolean参的show
        System.out.println();
    }
    public static void show(){}
    public static void show(String name){}
    public static void show(int age){}
    public static void show(String name,int age){}
    public static void show(int age,String name){}

    //public static int show(){}//编译错误，重载与返回值类型无关
    //public static int show(String address){}//编译错误，重载与参数名称无关
}
